import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import installElementPlus from './plugins/element'

// 完整引入Element ui框架
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 图表
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

const app = createApp(App)


// installElementPlus(app)
app.use(ElementPlus, { locale: zhCn }).use(store).use(router).component('v-chart', Echarts).mount('#app')
app.config.globalProperties.$echarts = echarts